<%@ Page language="c#" Inherits="FlashBack.Web.ManageUsers" CodeFile="ManageUsers.aspx.cs" CodeFileBaseClass="FlashBack.Web.PageBase" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
  <HEAD>
    <meta name="GENERATOR" Content="Microsoft Visual Studio 7.0">
    <meta name="CODE_LANGUAGE" Content="C#">
    <meta name=vs_defaultClientScript content="JavaScript (ECMAScript)">
    <meta name=vs_targetSchema content="http://schemas.microsoft.com/intellisense/ie5">
    <LINK REL="stylesheet" Type="text/css" HREF="FlashBack.css">
  </HEAD>
  <body>
	
    <form method="post" runat="server">
    <table width="100%" border="0" cellpadding="4" cellspacing="0">
		<tr>
			<td width="90%" class="Header">
				Manage Users
			</td>
			<td class="Header">
			</td>
		</tr>
	</table>
	<div align="center"><h3> Available Users</h3></div>
	<div align="center">
<asp:DataGrid ID="UsersGrid" CssClass="searchBody" Runat="server" AutoGenerateColumns="False" OnItemCommand="ItemCommand" BorderStyle="Solid" BorderColor="Green" Width="90%" CellPadding="4" OnItemDataBound="onRowBound">
<HeaderStyle CssClass="bandHeader">
</HeaderStyle>

<Columns>
<asp:BoundColumn DataField="Name" HeaderText="Name"></asp:BoundColumn>
<asp:BoundColumn DataField="Email" HeaderText="E-mail"></asp:BoundColumn>
<asp:BoundColumn DataField="Can Upload" HeaderText="Can Upload"></asp:BoundColumn>
<asp:BoundColumn DataField="Role" ItemStyle-Width="20%" HeaderText="Role"></asp:BoundColumn>

<asp:TemplateColumn HeaderText="Actions" ItemStyle-HorizontalAlign="Right">
<ItemTemplate>
	<asp:LinkButton ID="delete" Runat="server" CommandName="DeleteUser" >Delete</asp:LinkButton>
</ItemTemplate>
</asp:TemplateColumn>
</Columns>
</asp:DataGrid>
</div>
<br><br>

<div align="center">
<table Class="searchBody" width="50%" cellpadding="5">
<tr><td colspan="2">
	<asp:Label ForeColor="Red" Font-Bold="True" Visible="False" ID="ErrorText" Runat="server">Error!</asp:Label>
</td></tr>
<tr><td nowrap >User Name:</td><td width="80%"><asp:TextBox cssclass="searchInput" ID="newUserName" Runat="server"></asp:TextBox></td></tr>
<tr><td nowrap >User E-mail:</td><td><asp:TextBox cssclass="searchInput" ID="newUseremail" Runat="server"></asp:TextBox></td></tr>
<tr><td nowrap >Pasword:</td><td><input type="password" class="searchInput" ID="newUserPassword" Runat="server"></td></tr>
<tr><td nowrap >Repeat Pasword:</td><td><input type="password" class="searchInput" ID="repeatPassword" Runat="server"></td></tr>
<tr><td nowrap >Role:</td><td><asp:DropDownList cssclass="searchInput" ID="newUserRole" Runat="server"></asp:DropDownList></td></tr>
<tr><td></td><td nowrap ><asp:CheckBox cssclass="searchInput" Text="Can Upload Pictures" TextAlign="Right" ID="newCanUpload" Runat="server"></asp:CheckBox></td></tr>
<tr><td align="right" colspan="2"><asp:Button ID="newRole" Runat="server" Text="Add new User" OnCommand="AddUser"></asp:Button></td></tr>
</table>

</div>

</form></TR></TBODY>
<DIV></DIV></FORM></body>
</HTML>
